package cn.hqc.msg.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 寻主消息dto
 */
@Data
public class SearchMsgDto {

    @NotBlank(message = "名称不能为空")
    private String name;
    @NotNull(message = "价格不能为空")
    private Double price;
    @NotNull(message = "年龄不能为空")
    private Integer age;
    @NotNull(message = "性别不能为空")
    private Integer gender;
    @NotBlank(message = "颜色不能为空")
    private String coatColor;
    private String resources;
    @NotNull(message = "类型不能为空")
    private Long petType;
    private String address;
    @NotBlank(message = "标题不能为空")
    private String title;
}
